package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.DocuserMapper;
import com.aaa.hospital.ManagementEnd.pojo.Docuser;
import com.aaa.hospital.ManagementEnd.service.DocuserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DocuserServiceImpl implements DocuserService {
    @Autowired
    private DocuserMapper mapper;


    @Override
    public List<Docuser> queryAll() {
        return mapper.queryAll();
    }

    @Override
    public int update(Docuser docuser) {
        return mapper.update(docuser);
    }

    @Override
    public int delete(int did) {
        return mapper.delete(did);
    }

    @Override
    public int insert(Docuser docuser) {
        return mapper.insert(docuser);
    }

    @Override
    public List<Docuser> select_did_Name(Integer did,String name) {
        return mapper.select_did_Name(did,name);
    }


    @Override
    public  List<Docuser> selectAll() {
        return mapper.selectAll();
    }
}
